package com.android.dumiaogou.model.member;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/9/6.
 */

public abstract class AddressAreaDataCallback extends Callback<AddressAreaData> {

    @Override
    public AddressAreaData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        AddressAreaData Login = new Gson().fromJson(string,AddressAreaData.class);
        return Login;
    }
}
